conf = require("../config")
if not conf.indent_blankline.enabled then return {} end

return{
  "lukas-reineke/indent-blankline.nvim",
  event = "UIEnter",
  main = "ibl",
  ---@module "ibl"
  ---@type ibl.config
  opts = {
    debounce = 100,
    viewport_buffer = {
      min = 30,
      max = 500,
    },
    indent = {
      -- char = {'│', '¦', '┆', '┊'},
      char = {'│', '┆'},
      smart_indent_cap = true
    },
    scope = {
      enabled = false,
    },
    exclude = {
      filetypes = {
        "null-ls-info",
        "dashboard",
        "packer",
        "terminal",
        "help",
        "log",
        "markdown",
        "TelescopePrompt",
        "mason",
        "mason-lspconfig",
        "lspinfo",
        "toggleterm",
        "text",
        "checkhealth",
        "man",
        "gitcommit",
        "TelescopePrompt",
        "TelescopeResults",
      },
      buftypes = {
        "terminal",
        "nofile",
        "quickfix",
        "prompt",
      },
    },
  },
}
